<template>
	<view class="rights_interests">
		<z-paging ref="paging" v-model="dataList" @query="queryList" empty-view-img="../../static/img/nullData.png"
			empty-view-text="暂无数据">
			<equity-card v-for="(item, index) in dataList" :item="item" bacg="#f1f1f1"></equity-card>
		</z-paging>
	</view>
</template>

<script>
	import {
		getMyRightsInterests
	} from '@/config/rightsInterestsApi.js';
	export default {
		data() {
			return {
				// 客户编号
				customerNo: '',
				// customerNo: "1518474394966560768",
				// 请求的数据
				dataList: []
			}
		},
		created() {
			// 客户编号
			this.customerNo = uni.getStorageSync('customerNo')
		},
		methods: {
			queryList(pageNo, pageSize) {
				// 查询权益列表
				getMyRightsInterests({
					pageNo,
					pageSize,
					customerNo: this.customerNo
				}).then(res => {
					console.log(res)
					this.$refs.paging.completeByTotal(res.data, res.pagination.totalSize);
				})
			}
		}
	}
</script>

<style scoped lang="scss">
</style>
